package com.ms.exception;

/**
 * User: AW
 * Date: 24/02/13
 */
public class DpwcException extends RuntimeException {

    //private String code;
    private String message;
    private Object parameters[];

    public DpwcException() {
    }

    public DpwcException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public DpwcException(String message) {
        super(message);
        this.message = message;
    }

    public DpwcException(String message, Object... parameters) {
        super(message);
        this.message = message;
        this.parameters = parameters;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object[] getParameters() {
        return parameters;
    }

    public void setParameters(Object... parameters) {
        this.parameters = parameters;
    }
}
